import Vue from 'vue'
import App from './App.vue'

import store from "./store"
import VueRouter from "vue-router"
import router from "./router"

// import ElementUI from "element-ui"
// import 'element-ui/lib/theme-chalk/index.css';

import {  Icon,Input,Loading,Message,Dialog,Button,Table,TableColumn,Form,FormItem,Cascader,MessageBox,Upload,Backtop,Pagination,
  Notification   } from 'element-ui';
import "./assets/reset.scss"

Vue.use(VueRouter)
// Vue.use(ElementUI);
Vue.use(Icon);
Vue.use(Input);
Vue.use(Loading);
Vue.use(Dialog);
Vue.use(Button);
Vue.use(Table);
Vue.use(TableColumn);
Vue.use(Form);
Vue.use(FormItem);
Vue.use(Cascader);
Vue.use(Upload);
Vue.use(Backtop);
Vue.use(Pagination);
// Vue.use(MessageBox);
// Vue.use(Option);

// Vue.use(Message);
// Vue.use(Select);
Vue.prototype.$message = Message;
Vue.prototype.$messagebox = MessageBox;
Vue.prototype.$notify = Notification;
Vue.config.productionTip = false

new Vue({
  
  router,
  store,
  render: h => h(App),

  //全局事件总线安装
  beforeCreate(){
    Vue.prototype.$bus = this;
  }

}).$mount('#app')
